import Layout from '@/layout'
const router = {
  path: '/permission',
  component: Layout,
  name: 'permission',
  alwaysShow: true,
  meta: {
    type: 'S',
    roles: ['9010', '9020', '9030', '9040'],
    title: '用户权限',
    icon: 'people'
  },
  children: [{
    path: 'user',
    component: () => import('@/views/permission/user'),
    name: 'UserList',
    meta: {
      type: 'S',
      roles: ['9010'],
      title: '用户管理'
    }
  }, {
    path: 'role',
    component: () => import('@/views/permission/role'),
    name: 'UserRole',
    meta: {
      type: 'S',
      roles: ['9020'],
      title: '角色管理'
    }
  }, {
    path: 'funcs',
    component: () => import('@/views/permission/funcs'),
    name: 'UserFunc',
    meta: {
      type: 'S',
      roles: ['9030'],
      title: '功能菜单'
    }
  }, {
    path: 'data',
    component: () => import('@/views/permission/data'),
    name: 'UserData',
    meta: {
      type: 'S',
      roles: ['9040'],
      title: '数据权限'
    }
  }]
}

export default router
